home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / AMOSList / AMOSLIST / text0339.txt < prev    next >
Encoding:
Text File  |  1998-04-01  |  2.1 KB  |  52 lines

  1. On 29-Mar-98, Alastair Murray smashed the keyboard with:
  2. > After extensive testing on Backbone I've come to a conclusion on why
  3. > it won't work on some poeples computers.
  4. > Basically, its just too big! The code is fairly big and it reserves
  5. > a LOT of memory.
  6. > Things that can help get it run include: 
  7. > -cutting chunks of code out to make it smaller.
  8. > -reducing the amount of memory reserved.
  9. > -not having error message when compiling it.
  10. > Now apart from the last one (which doesn't help much anyway) I can't
  11. > really do the other two without wrecking my program.
  12. > Does anyone have any idea what causes AMOS to go crazy with big progs.
  13. > etc.
  14. > Oh, and I HAVE tried the Long Forward Jump option in the compiler!
  15.  
  16. I don't think you can blame AMOS for this, basicaly the programs isn't
  17. that demanding with memory anyway. But if you'd like to cut on memory-
  18. usage there's a few ways:
  19.  
  20. Put as much as you can in banks
  21. (Menus, AMAL, Interface, Data-lines, etc..)
  22.  
  23. Put as much as you can in external files, and load them into banks when
  24. needed, the remove them when not needed...
  25. (Graphics, Music and things like this..)
  26.  
  27. Put a display of the 'Free' variable somewhere in your program, and then
  28. begin to reduce the 'Set Buffer' value until you don't have more variable
  29. room that needed..
  30.  
  31. Reduce the 'Stack' with 'Set Stack'..
  32.  
  33. -- 
  34. Kind regards from
  35. ______________________________________________________________________________
  36.  /_  __/ __  / __  /\  ___\  __ \__  _\               aka. JENS VANG PETERSEN
  37.   / / / /_/ / ____/  \ \___\  __ \ \ \                  top_cat@post8.tele.dk
  38.  /_/ /_____/_/        \_____\_\ \_\ \_\
  39. ------------------------------------------------------------------------------
  40.                     http://home8.inet.tele.dk/top_cat/
  41.   -+-    Home of 'The Ultimate Extension list' for AMOS TC & AMOS PRO    -+-
  42.             -+-  SUPPORT - AMOS - AMIGA - AQUA - STARTREK TNG  -+-
  43. ------------------------------------------------------------------------------
  44.  A computer program does what you tell it to do, not what you want it to do.
  45. ------------------------------------------------------------------------------
  46.  
  47.  
  48.